<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.min.js"></script>
</head>
<body>
	<div align="center">
		<h1>用户基本信息</h1>
		<table width="100%" border="1" cellpadding="0" cellspacing="0" style="table-layout:fixed">
			<tr>
			<td>用户名称</td>
			<td>{$user.username}</td>
			<td>手机号码</td>
			<td><input type="number" name="mobile" id="mobileid" value="{$user.mobile}"></td>
			</tr>
			<tr>
			<td>签到次数</td>
			<td>{$user.signumber}</td>
			<td>Email</td>
			<td><input type="text" name="email" id="emailid" value="{$user.email}"></td>
			</tr>
			<tr>
			<td colspan="4" align="center"><input type='button' id="upuserdetai" value="提交修改">
			&nbsp;&nbsp;<span id="sucs" style="color:red;"></span></td>
			</tr>
		</table>
		
		<h1>用户资金信息</h1>
		<table width="100%" border="1" cellpadding="0" cellspacing="0" style="table-layout:fixed">
			<tr>
			<td>可用资金</td>
			<td>{$user.avail_money}</td>
			<td>可提现资金</td>
			<td>{$user.present_money}</td>
			</tr>
			<tr>
			<td>锁定资金</td>
			<td>{$user.locked_money}</td>
			<td>不可提现资金</td>
			<td>{$user.notpresent_money}</td>
			</tr>
			<tr>
			<td>理财宝资金</td>
			<td>{$user.creditmoney}</td>
			<td></td>
			<td></td>
			</tr>
		</table>
		
		<h1>用户域名数量</h1>
		<table width="100%" border="1" cellpadding="0" cellspacing="0" style="table-layout:fixed">
			<tr>
			<td>域名总数</td>
			<td>{$allDomaincount}个</td>
			<td>抵押中的域名数</td>
			<td>{$allmortagecount}个</td>
			</tr>
			<tr>
			<td>待审核域名数</td>
			<td>{$checkdomcount}</td>
			</tr>
		</table>
		<h1>用户借款信息</h1>
		<table width="100%" border="1" cellpadding="0" cellspacing="0" style="table-layout:fixed">
			<tr>
			<td>待还款总利息</td>
			<td>{$lixi}￥</td>
			<td>罚息总额</td>
			<td>{$penalty}￥</td>
			</tr>
			<tr>
			<td>借款总额</td>
			<td>{$credittotal}￥</td>
			</tr>
		</table>
	</div>
</body>
<script type="text/javascript">
$("#upuserdetai").click(function(){
	var emailid=$("#emailid").val();
	var mobile=$("#mobileid").val();
	var id="{$user.id}";
	$.ajax({
		url:"{$app_path}{:U('Admin/User/update')}",
		data:{'id':id,'mobile':mobile,'email':emailid},
		type:'post',
		dataType:'json',
		success:function(){
			$("#sucs").text("操作成功!");
		}
	});
});
</script>
</html>
